#ifndef OPENGLANDROIDEXAMPLES_GLES_UTIL_H
#define OPENGLANDROIDEXAMPLES_GLES_UTIL_H

#include <iostream>

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

GLuint linkProgram(const char * pVertexSource, const char * pFragmentSource);

void releaseProgram(GLuint program);

static GLuint compileShader(GLenum type, const char* pSource);

static GLint checkShaderStatus(GLuint shader);

static GLint checkProgramStatus(GLuint program);

static void checkError(std::string line);


#endif //OPENGLANDROIDEXAMPLES_GLES_UTIL_H
